using MESData.ErrorCode;
using MESData.ProductionPlan.API.DTO;

namespace MESData.ProductionPlan.API.Services
{
    /// <summary>
    /// 销售订单服务接口
    /// </summary>
    public interface ISalesOrderService
    {
        /// <summary>
        /// 分页查询所有销售订单
        /// </summary>
        /// <param name="queryDto">查询条件</param>
        /// <returns></returns>
        Task<ApiPageing<SalesOrderResultDto>> GetSalesOrdersAsync(SalesOrderQueryDto queryDto);

        /// <summary>
        /// 根据销售订单ID查询多个物品的分页条件查询列表
        /// </summary>
        /// <param name="queryDto">查询条件</param>
        /// <returns></returns>
        Task<ApiPageing<SalesOrderItemResultDto>> GetSalesOrderItemsAsync(SalesOrderItemQueryDto queryDto);
    }
} 